const wxPay = function (payInfo, succurl, failurl) {
    let { timeStamp,
        nonceStr,
        signType,
        paySign } = payInfo
    return new Promise(function (resolve, reject) {
        wx.requestPayment({
            timeStamp,
            nonceStr,
            package: payInfo.package, //package ES6保留字
            signType,
            paySign,
            success: res => {
                resolve()

            },
            fail: res => {
                console.error(res);
                reject()
            },

        });
    })

}
export default wxPay